/**物流设置-发货批次API batch**/
import obj from '@/utils/request'
let {request,baseURL} = obj
//查询所有渠道信息
export function getBoardingBatch(params) {
  return request({
    url: '/boardingBatch',
    method: 'get',
    params
  })
}
//添加渠道信息
export function addBoardingBatch(data) {
  return request({
    url: '/boardingBatch',
    method: 'post',
    data
  })
}
//修改渠道信息
export function modBoardingBatch(data) {
  return request({
    url: '/boardingBatch',
    method: 'put',
    data
  })
}
//删除渠道信息
export function delBoardingBatch(ids) {
  return request({
    url: '/boardingBatch',
    method: 'delete',
    data:ids
  })
}
//禁用启用渠道信息
export function disableOrEnableBoardingBatch(stores,params) {
  return request({
    url: '/boardingBatch',
    method: 'put',
    data:stores,
    params
  })
}
//查询单个的渠道信息
export function getBoardingBatchById(id) {
  return request({
    url: '/boardingBatch/'+id,
    method: 'get',
  })
}
//获取所有渠道
export function getDeliveryChannelMap(id) {
  return request({
    url: '/deliveryChannel/idNameMap',
    method: 'get',
  })
}
export function exportExcel(params){
  return baseURL + '/boardingBatch/excel'
}
